home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / develop Issue 28 / develop Issue 28 code / CurveLayout / AccurateShapesLibrary / AccurateShapes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-13  |  591 b   |  28 lines  |  [TEXT/CWIE]

  1. /*************************************
  2.     
  3.     File: ShapeMeasurement.h
  4.     
  5.     Header file for calling accurate shape measurement
  6.     routines.
  7.     
  8.     
  9. **************************************/
  10.  
  11. #include "GXTypes.h"
  12.  
  13.  
  14. gxPoint* AccurateShapeLengthToPoint(gxShape target, long index, Fixed length, gxPoint *location, gxPoint *tangent);
  15. wide *AccurateGetShapeLength(gxShape target, long index, wide *result);
  16. void AccuratePrimitiveShape(gxShape target);
  17.  
  18.  
  19. #define FixedToDouble(x) ( (long)(x) / 65536.0 )
  20. #define DoubleToFixed(x) ( (long)( x * 65536.0 ) )
  21.  
  22. typedef struct {
  23.     
  24.     double x;
  25.     double y;
  26.     
  27. } dblPoint;
  28.